const Mock=require("mockjs")
const data=Mock.mock({
    "data|5":[{
        name:"@cword(4)",
        id:"@id"
    }]
})

module.exports = {
    devServer:{
        before(app){
            app.get('/list', (req, res) => {
                res.json(data)
            })
        }
    }
}